<template>
	<view class="all">
		<view class="all_centent">
			<view class="carp" :style="{
			'border-top':index==0?'':'',
			'border-bottom':index!=list.length-1?'1rpx solid #EFEFEF':''
			}" @click="submit(item)" v-for="(item,index) in list">
				<text class="text_1">{{item.name}}</text>
				<view style="width: 70%;">
					<u-input v-model="item.value" type="text" :placeholder="'请输入'+item.name" />
				</view>

			</view>
		</view>
		<text class="footy">*信息不一致将无法提现，请确认无误后填写</text>
		<text class="footb">保存</text>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: "银行名称",
						value: "",
						text: '',
					},
					{
						name: "银行账号",
						value: "",
						text: ''
					},
					{
						name: "收款人",
						value: "",
						text: ''
					},
					{
						name: "开户支行",
						value: "",
						text: ''
					},
				]
			}
		},
		methods: {
			submit(a) {
				switch (a.name) {
					case '账号与安全':
						uni.navigateTo({
							url: './zhanghao'
						})
						break;
					case '提现设置':
						uni.navigateTo({
							url: './txsz'
						})
						break;
					default:
				}
			}
		}
	}
</script>

<style lang="scss">
	.footb {
		display: block;
		width: 300rpx;
		height: 88rpx;
		background: #FFD500;
		opacity: 1;
		border-radius: 44rpx;
		line-height: 88rpx;
		text-align: center;
		margin: 100rpx auto;
		font-size: 30rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		;
		color: #703F00;
		opacity: 1;

	}

	.footy {
		display: inline-block;
		margin-top: 20rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #E61E2A;
		opacity: 1;
	}

	.all {
		.all_centent {
			background-color: white;
			padding: 0rpx 20rpx 0rpx 20rpx;
			border-radius: 8rpx;
		}

		padding: 30rpx;

		.carp:active {
			// background-color: rgba($color: #999999, $alpha: 0.1);
		}

		.carp {
			padding: 20rpx 0 20rpx 0;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.carp_1 {
				text {
					font-size: 26rpx;
					font-family: Source Han Sans CN;
					color: #999999;
					margin-right: 10rpx;
					opacity: 1;
				}
			}

			.text_1 {
				font-size: 30rpx;
				font-family: Source Han Sans CN;
				color: #333333;
				font-weight: 600;
				opacity: 1;
			}
		}
	}
</style>


<style lang="scss">
	.all {
		background-color: #F5F5F5;
		min-height: 1300rpx;
		padding: 30rpx;

		// .carp {
		// 	background-color: white;
		// 	padding: 20rpx;
		// 	border-radius: 8rpx;
		// }
	}
</style>
